﻿using DDDSystem.Domain.Shared;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DDDSystem.Domain.Entities;

/// <summary>
/// 基础字典
/// </summary>
public class BasicDictionary
{
    [Key]
    public Guid ID { get; set; }

    /// <summary>
    /// 字典代码
    /// </summary>
    [MaxLength(40), Required]
    public string Code { get; set; }

    /// <summary>
    /// 字典名称
    /// </summary>
    [MaxLength(80), Required]
    public string Name { get; set; }

    /// <summary>
    /// 拼音码
    /// </summary>
    [MaxLength(40), Required]
    public string PinYinCode { get; set; }

    /// <summary>
    /// 字典类型
    /// </summary>
    [Required]
    public BasicDictionaryType Type { get; set; }

    /// <summary>
    /// 字典状态
    /// </summary>
    [Required]
    public BasicDictionaryStatus Status { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    [Required]
    public int Sort { get; set; }
}
